<html>
<head><title>Changing DMF Announcements</title>
<link rel="stylesheet" type="text/css" href="css/Default.css" />
<Script language="javascript" src="data/password.js"></script>
<Script language="javascript" src="exec/login.js"></script>
<noscript>
location.href="noscript.html";
</noscript>
<SCRIPT LANGUAGE="JavaScript">

	window.onload = redir(1);

//name of cookie: 'eomdmf'

</SCRIPT>
</head>
<br>
<center><h1>DMF Announcement Editor</h1><center>
<br>
<body>

<center><p style="font-family: Arial; font-size:20px">Current announcements are displayed 
in the box below and can be edited.<br>If you would like to add an announcement, please write it on a new line and then click "Submit News"</p><center>
<form method="POST" action="Replace_Announcements.php"> 
<center>
<label for="announcements"><span class="req"></span></label>
<textarea name="Announcements" id="announcements" rows="20" cols="70" style="color:000000; font-family: Arial;border: 2px solid black">
<?php 
$fh = fopen("data/ticker.txt", "r"); //Opens ticker.txt
while(!feof($fh))
{
	echo fgets($fh); //Displays the announcements
}
fclose($fh);
?></textarea>
<br></center><br>
<center><input id="subbut" type="submit" value="Submit News"></center>

</form>

<FORM METHOD="LINK" ACTION="index.html">
<INPUT TYPE="submit" VALUE="Home Page">
</FORM>
		
<FORM METHOD="LINK" ACTION="LoggedIn.php">
<INPUT TYPE="submit" VALUE="Return to Main Menu">
</FORM>
</body>
</html>
